package org.amse.tanks.objects;

import java.io.Serializable;

public class Explosion implements Serializable {
    private boolean isTankExplosion;
    private int myTtl;
    private int x;
    private int y;

    public Explosion(int x, int y, boolean tankExplosion, int ttl) {
        isTankExplosion = tankExplosion;
        this.x = x;
        this.y = y;
        myTtl = ttl;
    }

    public int getTtl() {
        return myTtl;
    }

    public void TtlDown() {
        this.myTtl--;
    }

    public boolean isTankExplosion() {
        return isTankExplosion;
    }

    public void setTankExplosion(boolean tankExplosion) {
        isTankExplosion = tankExplosion;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
